/**
 * Created by koudaiwang on 2017/7/21.
 */


var vm = new Vue({
    el: '#app',
    data : {
        platformList: []
    },
    methods:{
        getPlatformList: function(){
            var _self = this;
            this.$http.get('/getAllPlatformInfo')
                .then(function (response) {
                    console.log(response);
                    if (response.body.status == '1') {
                        _self.platformList = response.body.content.platformList;
                    } else {
                        window.document.write(response.body.msg);
                    }
                }, function (response) {
                    console.log(response);
                });
        }

    }
}, 'json');

vm.getPlatformList();